package com.blovesoft.tokenup.ui.mine;

import android.os.Bundle;
import android.support.annotation.NonNull;

import com.blankj.utilcode.util.StringUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.blovesoft.tokenup.R;
import com.blovesoft.tokenup.widget.DelEditText;
import com.llkj.common.base.BaseActivity;
import com.llkj.common.di.component.AppComponent;

import butterknife.BindView;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/28
 * desc  : 修改昵称
 */
public class UpdateNickNameActivity extends BaseActivity {

    @BindView(R.id.et_username)
    DelEditText etUsername;

    @Override
    public int getLayoutResId() {
        return R.layout.activity_update_name;
    }

    @Override
    public boolean useEventBus() {
        return false;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void getBundleExtras(Bundle extras) {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public void onClickRightCtv() {
        String name = etUsername.getText().toString().trim();
        if (StringUtils.isEmpty(name)) {
            ToastUtils.showShort(getString(R.string.please_input_nickname));
            return;
        }
        finish();
    }
}
